package com.niguang.work.api.entity;

import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author chenliu
 * @since 2018-07-25
 */
@TableName("work_wechat_page_user")
@Data
public class WechatPageUser extends Model<WechatPageUser> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long userId;
    private String userName;
    private String sex;
    private String age;
    private String userPhone;
    private String userIdCard;
    private String workTypeName;
    private Long teamId;
    private String bzName;
    private String siteName;
    private Long siteId;
    private String teamUserName;
    private String teamUserPhone;
    private String joinTime;
    private String pushUid;
    private String teamUserPic;
    private String userPic;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String USER_NAME = "user_name";

    public static final String SEX = "sex";

    public static final String USER_PHONE = "user_phone";

    public static final String USER_ID_CARD = "user_id_card";

    public static final String WORK_TYPE_NAME = "work_type_name";

    public static final String TEAM_ID = "team_id";

    public static final String BZ_NAME = "bz_name";

    public static final String SITE_NAME = "site_name";

    public static final String SITE_ID = "site_id";

    public static final String TEAM_USER_NAME = "team_user_name";

    public static final String TEAM_USER_PHONE = "team_user_phone";

    public static final String JOIN_TIME = "join_time";

    public static final String PUSH_UID = "push_uid";

    public static final String CREATE_TIME = "create_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WechatPageUser{" +
                "id=" + id +
                ", userId=" + userId +
                ", userName=" + userName +
                ", sex=" + sex +
                ", userPhone=" + userPhone +
                ", userIdCard=" + userIdCard +
                ", workTypeName=" + workTypeName +
                ", teamId=" + teamId +
                ", bzName=" + bzName +
                ", siteName=" + siteName +
                ", siteId=" + siteId +
                ", teamUserName=" + teamUserName +
                ", teamUserPhone=" + teamUserPhone +
                ", joinTime=" + joinTime +
                ", pushUid=" + pushUid +
                ", createTime=" + createTime +
                "}";
    }
}
